liboutputdevice.a: outputdevice.o
	ar $(ARFLAGS) liboutputdevice.a outputdevice.o
	ranlib liboutputdevice.a

outputdevice.o: outputdevice.cpp outputdevice.h task.h uSmartPointer.hh uMap.hh
	g++ -c -Wall -std=c++0x outputdevice.cpp -o outputdevice.o


tar:
	tar cvf ex3.tar outputdevice.cpp outputdevice.h task.h uSmartPointer.hh uMap.hh README Makefile


supertester: superTester.cpp liboutputdevice.a
	g++ -g -Wall -std=c++0x superTester.cpp -o supertester -lpthread -L. -loutputdevice 
	./supertester
	cat buffer.txt | grep hello | wc -l
	cat buffer.txt | grep thread | wc -l
